#include "http.hpp"

void test1()
{
    using namespace std;
    string s = "nihao,,,nihao,wocao,ok";
    vector<string> ret;
    Util::Split(s,",",&ret);
    for(auto& s: ret)
    {
        cout << s << endl;
    }
}

void test2()
{
    using namespace std;
    string url = "nihaoa c++ !!!";
    string ret = Util::URLEncode(url,true);
    cout << ret << endl;
    cout << Util::URLDecode(ret,true) << endl;
    
}

void test3()
{
    using namespace std;
    string s = "/nihao/../../tmp.cc";
    cout << Util::ValidPath(s) << endl;
}

int main()
{
    test3();
    return 0;
}